$(document).ready(function(){
    	   var a = "a";
    	   alert(a);
    	   window.onbeforeunload = function () {
    		   alert('axdvfds');
    	   }
});
